package net.huashitong.scheduling.service;

import com.sirdc.modules.core.dao.BaseDao;
import com.sirdc.modules.sys.base.StringPKService;
import net.huashitong.scheduling.dao.ProjectSecondRecomDao;
import net.huashitong.scheduling.entity.ProjectSecondRecom;
import net.huashitong.scheduling.filter.ProjectReserveFilter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProjectSecondRecomService  extends StringPKService<ProjectSecondRecom> {
    @Autowired
    private ProjectSecondRecomDao dao;

    @Override
    protected BaseDao<ProjectSecondRecom, String> getDao(){
        // TODO Auto-generated method stub;
        return dao;
    }

    public List<ProjectSecondRecom> queryByType(String type, ProjectReserveFilter filter){
        return dao.queryByType(type,filter);
    }
}
